<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
	<HEAD>
		<TITLE>论坛--回复帖子</TITLE>
		<style type="text/css">
	body{
background:#4BC1DD
}	
</style>
		<script type="text/javascript">
function check(){
	if(document.postForm.title.value == "") {
			alert("标题不能为空");
			return false;
		}
		if (document.postForm.content.value.length > 500) {
			alert("长度不能大于500");
			return false;
		}
	}
	</script>
	</HEAD>
	<body>
        <DIV>
			<IMG src="image/logo.gif">
		</DIV>
		<DIV class="h">
			您好：${sessionScope.user.username } &nbsp;| &nbsp;
			<A href="userLogout.action">退出系统</A>
		</DIV>
          <br />
			<DIV>
				&gt;&gt;
				<B><a href="getIndexInfo.action">论坛首页</a>
				</B>
			</DIV>
			<br />
			<DIV>
				<FORM name="postForm" onSubmit="return check()"
					action="addReply.action" method="POST"
					enctype="multipart/form-data">
					<INPUT type="hidden" name="topicId" value="${param.topicId}" />
					<DIV class="t">
						<TABLE cellSpacing="0" cellPadding="0" align="center">
							<TR>
								<TD class="h" colSpan="3">
									<B>回复帖子</B>
								</TD>
							</TR>
							<TR class="tr3">
								<TH width="20%">
									<B>标题</B>
								</TH>
								<TH>
									<INPUT class="input"
										style="PADDING-LEFT: 2px; FONT: 14px Tahoma" tabIndex="1"
										size="60" name="title">
								</TH>
							</TR>
							<TR class="tr3">
								<TH vAlign=top>
									<DIV>
										<B>内容</B>
									</DIV>
								</TH>
								<TH colSpan=2>
									<DIV>
										<FCK:editor width="755" height="460" instanceName="content">
											<FCK:config SkinPath="skins/office2003/" />
										</FCK:editor>
									</DIV>
									
								</TH>
							</TR>
						</TABLE>
					</DIV>
					<DIV style="MARGIN: 15px 0px; TEXT-ALIGN: center">
						<INPUT class="btn" tabIndex="3" type="submit" value="提 交">
						<INPUT class="btn" tabIndex="4" type="reset" value="重 置">
					</DIV>
				</FORM>
			</DIV>
		<div>
		<jsp:include page="bottom.jsp"></jsp:include>
		</div>
	</BODY>
</HTML>
